package com.chenjian.designpattern.proxy;

public class Test {
    public static void main(String[] args) {
        Bob bob = new Bob();
        bob.doS();

        JdkDynamicProxy jdkDynamicProxy = new JdkDynamicProxy(bob);
        Person target = (Person) jdkDynamicProxy.getTarget();
        target.doS();
    }
}

